<div class="register">
<div class="steps">
	<ul class="fs_14 fw_b line_28 c_666 c_f">
		<li class="cur first"><span class="one">第一步：填写注册信息</span></li>
		<li class=""><span class="two">第二步：验证账户信息</span></li>
		<li class="last"><span class="three">第三步：注册成功</span></li>
	</ul>
</div>

<div class="step_one step_box">
    <?php 
	$form = $this->beginWidget('CActiveForm', 
	array(
    'id'=>'user-form',
    'enableAjaxValidation'=>false,
    'enableClientValidation'=>true,	
    'focus'=>array($model,'zm_name'),
	'action'=>'/home/user/registertwo',
	//'clientOptions'=>array('validateOnSubmit'=>true)
	)); ?>
    	<ul class="form">
			<li>
                <span class="tit"><?php echo $form->label($model,'zm_name'); ?>：</span>
                <?php echo $form->textField($model,'zm_name',array('class'=>'t_ipt ipt_bg','maxlength'=>'32')); ?>
                <span id="Member_zm_nameTip"></span>
            </li>
            
			<li>
                <span class="tit"><?php echo $form->label($model,'zm_psword'); ?>：</span>
                <?php echo $form->passwordField($model,'zm_psword',array('class'=>'t_ipt ipt_bg','maxlength'=>'32')); ?>
                <span id="Member_zm_pswordTip"></span>
            </li>
			
            <li>
                <span class="tit"><?php echo $form->label($model,'re_psword'); ?>：</span>
                <?php echo $form->passwordField($model,'re_psword',array('class'=>'t_ipt ipt_bg','maxlength'=>'32')); ?>
                <span id="Member_re_pswordTip"></span>
            </li>
			
            <li>
                <span class="tit"><?php echo $form->label($model,'verifyCode'); ?>：</span>
                <?php echo $form->textField($model,'verifyCode',array('class'=>'t_ipt code','maxlength'=>'5')); ?>
                <?php $this->widget('CCaptcha',array('buttonLabel'=>'看不清换一张','clickableImage'=>true,'buttonOptions'=>array('class'=>'c_06c exchange'))); ?>
                <span style="padding-left:5px;" id="verifyCodes"><?php echo $form->error($model,'verifyCode',array('class'=>'d_i c_red2'),true,true,'span'); ?></span>
            </li>
            
			<li><span class="tit"></span><input class="chk" type="checkbox" checked="checked" name="agree" />我已经看过并同意<a class="c_06c" href="javascript:" onclick="showService()">《<?php echo F::setting('sitename')?>网服务条款》</a></li>
			<li class="reg"><span class="tit"></span><button type="submit" class="btn btn_regok">同意以上条款 并注册</button></li>
		</ul>
	<?php $this->endWidget(); ?>
</div>
</div>
<!--弹出框所需js及css-->
<link id="artDialog-skin" href="<?php echo Yii::app()->homeUrl ?>/js/artdialog/skins/green.css" rel="stylesheet" />
<script src = "<?php echo Yii::app()->homeUrl ?>/js/artdialog/artDialog.min.js"></script>
<script src = "<?php echo Yii::app()->homeUrl ?>/js/artdialog/artDialog.plugins.min.js"></script>
<script src = "<?php echo Yii::app()->homeUrl ?>/js/artdialog/jquery.artDialog.min.js"></script>
<!--弹出框所需js及css-->
<script type="text/javascript">
	//服务条款弹出框
	function showService(){
		art.dialog({
		    title: '<?php echo F::setting('sitename')?>网服务条款',		    
		    width: 500,
		    height: 400,
		    fixed: true,
		    content: '<?php echo Yii::app()->format->formatHtml(Block::model()->Getpos('help_showservice'))?>',		    
		});

	}
</script>
	<!-- 验证所需JS -->
	<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/js/formvalidata/formValidator-4.1.1.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/js/formvalidata/formValidatorRegex.js"></script>
	 <script>
		jQuery(document).ready(function($) {
			$.formValidator.initConfig({theme:"Default",formID:"user-form",
				onError:function(msg, obj){
							alert(msg);
							return false;
						},
				onsuccess:function(){ return true; }
			});
		})
	</script>
	<script type="text/javascript" src="<?php echo Yii::app()->baseUrl;?>/js/formvalidata/cmpValidate.js"></script> 
